package main

import (
	"flag"
	"fmt"
)

func main() {
	var (
		name    string
		age     int
		married bool
	)

	flag.StringVar(&name, "n", "greg", "your name")
	flag.IntVar(&age, "a", 20, "your age")
	flag.BoolVar(&married, "m", true, "whether married")
	flag.Parse()
	fmt.Printf("your name:%s\n your age: %d \n your married :%v\n", name, age, married)
}
